
//TODO a(8)
function a8(module, exports, a) {
    var i = a(6), s = a(2), r = function () {
        this.swfCache = {}, this.version = void 0, this.mixVersion = [10, 0, 0], this.flashChecker = "http://player.letvcdn.com/p/201212/28/14/newplayer/plugins/Version.swf"
    };
    r.prototype = {
        pushCache: function (e) {
            var t = (new Date).getTime() + "" + Math.floor(1e3 * Math.random());
            return e.error = e.error || {}, e.dom = /^#./i.test(e.dom) ? e.dom : "#" + e.dom, this.swfCache[t] = {data: e}, t
        }, readCache: function (e) {
            var t = this.swfCache[e];
            return t || (t = null), t
        }, createSwf: function (e) {
            var t = this.pushCache(e);
            e.version && (this.mixVersion = e.version), this.version ? this.checkCallBack({uid: t}) : this.controlVersion(t)
        }, checkCallBack: function (e) {
            var t = this.readCache(e.uid).data, a = "";
            clearTimeout(this.setTimeoutCallBack_cache), this.version || (this.version = e.version);
            var r = t.flashData.wmode || "window", n = t.flashData.bg || "#000000", o = !1;
            o = this.version[0] > this.mixVersion[0] || this.version[0] == this.mixVersion[0] && (this.version[1] > this.mixVersion[1] || this.version[1] == this.mixVersion[1] && (this.version[2] > this.mixVersion[2] || this.version[2] == this.mixVersion[2])), o ? a = this.AC_FL_RunContent("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0", "width", t.flashData.w, "height", t.flashData.h, "src", t.flashData.src, "quality", "high", "pluginspage", "http://www.macromedia.com/go/getflashplayer", "align", "middle", "play", "true", "loop", "true", "scale", "noscale", "wmode", r, "devicefont", "false", "id", t.flashData.id, "bgcolor", n, "name", t.flashData.id, "menu", "true", "allowScriptAccess", "always", "allowFullScreen", "true", "allowFullScreenInteractive", "true", "salign", "TL", "movie", t.flashData.src, "flashvars", t.flashData.flashvars) : (a = t.error.html ? t.error.html : "", a = a.replace("{version}", this.mixVersion.join("."))), t.dom && t.dom.length > 0 ? (i(t.dom)[0].innerHTML = a, s.msie && "8.0" === s.version && (i(t.dom)[0].style.zoom = 1)) : document.write(a)
        }, checkSwfURL: function (e) {
            var t = a(9)(LETV_PLAYER.CONFIG.lan), i = document.getElementById(e), s = i.getElementsByTagName("embed")[0];
            if (s || (s = i.getElementsByTagName("object")[0]), s) {
                var r = s.getAttribute("src");
                if (/chrome-extension/.test(r)) {
                    var n = '<div style="position:absolute;width:300px;height:80px;top:50%;left:50%;margin:-40px 0 0 -150px; background:#000;overflow:hide;"><div style="text-align:center; color:#aaa; line-height:32px; font-size:14px;">' + t("由于您安装了广告屏蔽插件导致视频不能播放") + "<br/>" + t("请换个浏览器或者关闭广告屏蔽功能再试试吧") + "~</div></div>";
                    i.innerHTML = n
                }
            }
        }, controlVersion: function (e) {
            var t = "undefined", a = navigator, i = document, s = "Shockwave Flash", r = "object", n = "application/x-shockwave-flash", o = "ShockwaveFlash.ShockwaveFlash", l = (window, typeof i.getElementById != t && typeof i.getElementsByTagName != t && typeof i.createElement != t, a.userAgent.toLowerCase()), d = a.platform.toLowerCase(), h = (d ? /win/.test(d) : /win/.test(l), d ? /mac/.test(d) : /mac/.test(l), !!/webkit/.test(l) && parseFloat(l.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")), !1), c = [0, 0, 0], p = null;
            if (typeof a.plugins != t && typeof a.plugins[s] == r) p = a.plugins[s].description, !p || typeof a.mimeTypes != t && a.mimeTypes[n] && !a.mimeTypes[n].enabledPlugin || (h = !1, p = p.replace(/^.*\s+(\S+\s+\S+$)/, "$1"), c[0] = parseInt(p.replace(/^(.*)\..*$/, "$1"), 10), c[1] = parseInt(p.replace(/^.*\.(.*)\s.*$/, "$1"), 10), c[2] = /[a-zA-Z]/.test(p) ? parseInt(p.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0), this.checkCallBack({
                version: c,
                uid: e
            }); else try {
                var u = new ActiveXObject(o);
                u && (p = u.GetVariable("$version"), p && (h = !0, p = p.split(" ")[1].split(","), c = [parseInt(p[0], 10), parseInt(p[1], 10), parseInt(p[2], 10)])), this.checkCallBack({
                    version: c,
                    uid: e
                })
            } catch (g) {
                this.flash_ControlVersion(e)
            }
        }, flash_ControlVersion: function (e) {
            var t = {
                flashData: {
                    w: 1,
                    h: 1,
                    src: this.flashChecker,
                    wmode: "window",
                    id: "flash_version_checker",
                    flashvars: "callBack=LETV_PLAYER.FlashVars.checkCallBack&uid=" + e
                }
            }, a = this.AC_FL_RunContent("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0", "width", t.flashData.w, "height", t.flashData.h, "src", t.flashData.src, "quality", "high", "pluginspage", "http://www.macromedia.com/go/getflashplayer", "align", "middle", "play", "true", "loop", "true", "scale", "noscale", "wmode", t.flashData.wmode, "devicefont", "false", "id", t.flashData.id, "bgcolor", "#000000", "name", t.flashData.id, "menu", "true", "allowScriptAccess", "always", "allowFullScreen", "true", "salign", "TL", "movie", t.flashData.src, "flashvars", t.flashData.flashvars);
            this.setTimeoutCallBack(e), i(this.readCache(e).data.dom)[0].innerHTML = a
        }, setTimeoutCallBack: function (e) {
            var t = this;
            this.setTimeoutCallBack_cache = setTimeout(function () {
                t.checkCallBack({version: [0, 0, 0], uid: e})
            }, 3e3)
        }, AC_Generateobj: function (e, t, a) {
            var i = new Array;
            if (s.msie && s.atwin && !s.opera) {
                i.push("<object ");
                for (var r in e)i.push(r + '="' + e[r] + '" ');
                i.push(">");
                for (var r in t)i.push('<param name="' + r + '" value="' + t[r] + '" /> ');
                i.push("</object>")
            } else {
                i.push("<embed ");
                for (var r in a)i.push(r + '="' + a[r] + '" ');
                i.push("> </embed>")
            }
            return i.join("")
        }, AC_FL_RunContent: function () {
            var e = this.AC_GetArgs(arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", "application/x-shockwave-flash");
            return this.AC_Generateobj(e.objAttrs, e.params, e.embedAttrs)
        }, AC_SW_RunContent: function () {
            var e = this.AC_GetArgs(arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000", null);
            return this.AC_Generateobj(e.objAttrs, e.params, e.embedAttrs)
        }, AC_GetArgs: function (e, t, a, i, s) {
            var r = new Object;
            r.embedAttrs = new Object, r.params = new Object, r.objAttrs = new Object;
            for (var n = 0; n < e.length; n += 2) {
                var o = e[n].toLowerCase();
                switch (o) {
                    case"classid":
                        break;
                    case"pluginspage":
                        r.embedAttrs[e[n]] = e[n + 1];
                        break;
                    case"src":
                    case"movie":
                        r.embedAttrs.src = e[n + 1], r.params[a] = e[n + 1];
                        break;
                    case"onafterupdate":
                    case"onbeforeupdate":
                    case"onblur":
                    case"oncellchange":
                    case"onclick":
                    case"ondblclick":
                    case"ondrag":
                    case"ondragend":
                    case"ondragenter":
                    case"ondragleave":
                    case"ondragover":
                    case"ondrop":
                    case"onfinish":
                    case"onfocus":
                    case"onhelp":
                    case"onmousedown":
                    case"onmouseup":
                    case"onmouseover":
                    case"onmousemove":
                    case"onmouseout":
                    case"onkeypress":
                    case"onkeydown":
                    case"onkeyup":
                    case"onload":
                    case"onlosecapture":
                    case"onpropertychange":
                    case"onreadystatechange":
                    case"onrowsdelete":
                    case"onrowenter":
                    case"onrowexit":
                    case"onrowsinserted":
                    case"onstart":
                    case"onscroll":
                    case"onbeforeeditfocus":
                    case"onactivate":
                    case"onbeforedeactivate":
                    case"ondeactivate":
                    case"type":
                    case"codebase":
                    case"id":
                        r.embedAttrs[e[n]] = r.objAttrs[e[n]] = e[n + 1];
                        break;
                    case"width":
                    case"height":
                    case"align":
                    case"vspace":
                    case"hspace":
                    case"class":
                    case"title":
                    case"accesskey":
                    case"name":
                    case"tabindex":
                        r.embedAttrs[e[n]] = r.objAttrs[e[n]] = e[n + 1];
                        break;
                    default:
                        r.embedAttrs[e[n]] = r.params[e[n]] = e[n + 1]
                }
            }
            return r.objAttrs.classid = i, s && (r.embedAttrs.type = s), r
        }
    }, LETV_PLAYER.FlashVars = new r
}
